package com.yanqu.road.logic.bussiness.player;


import com.yanqu.road.entity.activity.cookboy.CookBoyData;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class UserCookBoyBussiness {

    public static Map<Integer, CookBoyData> getUserHistoryRecoverCookBoy2Map(Long userId,List<Integer> activityIdList) {
        return DaoHelper.getUserCookBoyDaoImpl().getUserHistoryRecoverCookBoy2Map(userId,activityIdList);
    }

    public static Map<Long, CookBoyData> getUserCookBoyMap(Integer activityId) {
        return DaoHelper.getUserCookBoyDaoImpl().getUserCookBoyMap(activityId);
    }

    public static Map<Integer,Map<Long, CookBoyData>> getUserCookBoyAcMap(List<Integer> activityIdList) {
        return DaoHelper.getUserCookBoyDaoImpl().getUserCookBoyAcMap(activityIdList);
    }

    public static CookBoyData getUserCookBoy(int activityId,long userId) {
        return DaoHelper.getUserCookBoyDaoImpl().getUserCookBoy(activityId,userId);
    }

    public static boolean addUserCooBoyList(List<CookBoyData> dataList) {
        return DaoHelper.getUserCookBoyDaoImpl().addUserCooBoyList(dataList);
    }

    public static boolean updateUserCookBoyList(List<CookBoyData> dataList) {
        return DaoHelper.getUserCookBoyDaoImpl().updateUserCooBoyList(dataList);
    }


    public static boolean addUserCookBoy(CookBoyData data) {
        return DaoHelper.getUserCookBoyDaoImpl().add(data);
    }

    public static boolean updateUserCookBoy(CookBoyData data) {
        return DaoHelper.getUserCookBoyDaoImpl().update(data);
    }


}
